//
//  DetailTableViewCell.m
//  FNMenu
//
//  Created by 航汇聚科技 on 2018/9/5.
//  Copyright © 2018年 Yi Zhou. All rights reserved.
//

#import "DetailTableViewCell.h"
#import <SDWebImage/UIImageView+WebCache.h>
@interface DetailTableViewCell ()

@end

@implementation DetailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}
- (IBAction)replyAction:(UIButton *)sender {
    
}
- (IBAction)deleteCommentContentAction:(UIButton *)sender {
    if (self.deleteCommentContent) {
        self.deleteCommentContent();
    }
}

- (IBAction)controlAnimateAction:(UIButton *)sender {
    sender.hidden = YES;
    self.animatedImgView.animatedImage = self.animatedImage;
    [self.animatedImgView startAnimating];
    __weak typeof(self) ws = self;
    self.animatedImgView.loopCompletionBlock = ^(NSUInteger loopCountRemaining) {
        sender.hidden = NO;
        [ws.animatedImgView stopAnimating];
        [ws.animatedImgView sd_setImageWithURL:self.iconImgUrl];
    };
}
- (void)dealloc {
    NSLog(@"DetailTableViewCell dealloc");
}

@end
